package com.lwc.cfdns.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lwc.cfdns.pojo.bo.monitor.LoginLogBO;
import com.lwc.cfdns.pojo.entity.SystemLogininfor;
import com.baomidou.mybatisplus.extension.service.IService;
import eu.bitwalker.useragentutils.UserAgent;

import java.util.Map;

/**
 * @author spring
 * @description 针对表【cfdns_system_logininfor(系统访问记录)】的数据库操作Service
 * @createDate 2023-07-24 16:16:34
 */
public interface SystemLogininforService extends IService<SystemLogininfor> {
    /**
     * 创建
     *
     * @param
     * @return void
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/24 16:26:33
     */
    void create(String userName, String status, String message);

    /**
     * 列表
     *
     * @param loginLogBO
     * @return IPage<SystemLogininfor>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/25 09:55:39
     */
    IPage<SystemLogininfor> lists(LoginLogBO loginLogBO);

    /**
     * 删除
     *
     * @param ids
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/25 10:57:57
     */
    Map<String, Object> delete(String ids);

    /**
     * 删除所有
     *
     * @param
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/25 10:59:20
     */
    Map<String, Object> clean();

    /**
     * 解锁
     *
     * @param userName
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/7/25 11:02:16
     */
    Map<String, Object> unlock(String userName);
}
